FROM nginx:latest
# FROM nginx

# 将dist目录内容复制到nginx容器html内部
COPY ./ruoyi-ui/dist /usr/share/nginx/html
COPY ./ruoyi-ui/default.conf /etc/nginx/conf.d/default.conf

#暴露端口80
EXPOSE 80

#启动nginx服务
#CMD ["nginx", "-g", "daemon off;"]
